package com.qf.service;

import com.qf.pojo.DtsRole;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author Ypl
 * @version V1.0
 * @Project September-mavens
 * @Package com.qf.service
 * @Description:
 * @Date 2022/10/13 17:23
 */
@SuppressWarnings("all")
public interface DtsRoleService {
    //需要的是一个角色的集合
    Set<String> findRoleByIds(Integer[] roleIds);

    List<DtsRole> finAllRole();
    //分页查找
    Map<String, Object> findByPage(Integer page, Integer limit, String sort, String order, String username);


    void insertRole(DtsRole dtsRole);

    void update(DtsRole dtsRole);

    void deleteRole(DtsRole dtsRole);

    boolean isSuperAdmin(Integer roleId);
}
